import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule }    from '@angular/common/http';
import { AppComponent } from './app.component';
import { HeroService } from './hero.service';
import { AppRoutingModule } from './app-routing.module';
import { ArticlesComponent } from './articles/articles.component';
import { AsideComponent } from './aside/aside.component';
import { PaginationComponent } from './pagination/pagination.component';
import { ArticleDetailComponent } from './article-detail/article-detail.component';
import { PublishBlogComponent } from './publish-blog/publish-blog.component';
import { MarkdownComponent } from './markdown/markdown.component';
import { UserService } from './user.service';
import { LoginComponent } from './login/login.component';
import {AuthGuard} from "./auth-guard.service";
import {httpInterceptorProviders} from './http-interceptors';
import { HeaderComponent } from './header/header.component';
import { ContentTagsComponent } from './content-tags/content-tags.component';


@NgModule({
  declarations: [
    AppComponent,
    ArticlesComponent,
    ArticlesComponent,
    AsideComponent,
    PaginationComponent,
    ArticleDetailComponent,
    PublishBlogComponent,
    MarkdownComponent,
    LoginComponent,
    HeaderComponent,
    ContentTagsComponent,

  ],
  imports: [
    BrowserModule,
    FormsModule,
    AppRoutingModule,
    HttpClientModule
  ],
  providers: [HeroService, UserService,AuthGuard,httpInterceptorProviders],
  bootstrap: [AppComponent]
})
export class AppModule { }
